package cn.ys.others;

import android.content.Context;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by jh on 2015/7/1.
 */
public class MyDataBaseHelper extends SQLiteOpenHelper{
    public MyDataBaseHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    public MyDataBaseHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version, DatabaseErrorHandler errorHandler) {
        super(context, name, factory, version, errorHandler);
    }

    public MyDataBaseHelper(Context context,String name){
        super(context,name,null,1);

    }
    @Override
    public void onCreate(SQLiteDatabase db) {

        db.execSQL("create table regist(user varchar(20),password varchar(20))");

    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
